﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Yto.Common.Dependency;

namespace Yto.Common.Extensions
{
    public static class CtnResolverExtensions
    {

        public static IDisposeWapperObj ResolverWithDispose(this ICtnResolver ctnResolver,Type type)
        {
            return new DisposeWapperObj(ctnResolver, ctnResolver.Resolver(type));
        }
    }
}
